Get the integer value associated with the given key. If there is no integer value associated with the key, return the defaultVal.